We now depend on a gjs version that is guaranteed to provide those
more idiomatic wrappers, so use them instead of the clunkier static
methods.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/795
this._extension = ExtensionUtils.deserializeExtension(newState);
let state = (this._extension.state == ExtensionState.ENABLED);
- GObject.signal_handler_block(this._switch, this._notifyActiveId);
+ this._switch.block_signal_handler(this._notifyActiveId);
this._switch.state = state;
- GObject.signal_handler_unblock(this._switch, this._notifyActiveId);
+ this._switch.unblock_signal_handler(this._notifyActiveId);
this._switch.sensitive = this._canToggle();
});
}
_changeSlider(value) {
- GObject.signal_handler_block(this._slider, this._sliderChangedId);
+ this._slider.block_signal_handler(this._sliderChangedId);
this._slider.value = value;
- GObject.signal_handler_unblock(this._slider, this._sliderChangedId);
+ this._slider.unblock_signal_handler(this._sliderChangedId);
}
_sync() {
}
_changeSlider(value) {
- GObject.signal_handler_block(this._slider, this._sliderChangedId);
+ this._slider.block_signal_handler(this._sliderChangedId);
this._slider.value = value;
- GObject.signal_handler_unblock(this._slider, this._sliderChangedId);
+ this._slider.unblock_signal_handler(this._sliderChangedId);
}
_updateVolume() {